# -------------------------------------------------------------------------------------------------------------
# CMakeLists.txt for vm project.
# -------------------------------------------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8)

# -------------------------------------------------------------------------------------------------------------
# <project>
# -------------------------------------------------------------------------------------------------------------
project(vm CXX)
# -------------------------------------------------------------------------------------------------------------
# <project/>
# -------------------------------------------------------------------------------------------------------------

# -------------------------------------------------------------------------------------------------------------
# <source files>
# -------------------------------------------------------------------------------------------------------------
set(${PROJECT_NAME}_SOURCES
    main.cpp
    Loader.cpp
    Interpreter.cpp
)
# -------------------------------------------------------------------------------------------------------------
# <source files/>
# -------------------------------------------------------------------------------------------------------------

# -------------------------------------------------------------------------------------------------------------
# <header files>
# -------------------------------------------------------------------------------------------------------------
set(${PROJECT_NAME}_HEADERS
    FundamentalTypes.h
    Loader.h
    Interpreter.h
    macros.h
)
# -------------------------------------------------------------------------------------------------------------
# <header files/>
# -------------------------------------------------------------------------------------------------------------

# -------------------------------------------------------------------------------------------------------------
# <includes>
# -------------------------------------------------------------------------------------------------------------

# -------------------------------------------------------------------------------------------------------------
# </includes>
# -------------------------------------------------------------------------------------------------------------

# -------------------------------------------------------------------------------------------------------------
# <groups>
# -------------------------------------------------------------------------------------------------------------
source_group(Sources    REGULAR_EXPRESSION ".*\\.cpp$|.*\\.h$")
# -------------------------------------------------------------------------------------------------------------
# </groups>
# -------------------------------------------------------------------------------------------------------------

# -------------------------------------------------------------------------------------------------------------
# <target>
# -------------------------------------------------------------------------------------------------------------
add_executable(${PROJECT_NAME}
    ${${PROJECT_NAME}_SOURCES}
    ${${PROJECT_NAME}_HEADERS}
)

#target_link_libraries(${PROJECT_NAME} libname1 libname2 ...) 

# -------------------------------------------------------------------------------------------------------------
# <target/>
# -------------------------------------------------------------------------------------------------------------

# -------------------------------------------------------------------------------------------------------------
# <install files>
# -------------------------------------------------------------------------------------------------------------

# -------------------------------------------------------------------------------------------------------------
# </install files>
# -------------------------------------------------------------------------------------------------------------
